#include "../libcomm/message.h"
#include "../src/execution.h"

int main(int argc, char *argv[]) {
	/*msg * msg2 = create_msg("000300003", "Achat", "0001000001", "007");
	msg * rtn = (msg*) malloc(sizeof(msg));
	printf("msg2: %s", msg_to_str(msg2));
	rtn = execution_msg(msg2);
	printf("%s",msg_to_str(rtn));*/
	module *exect1=(module*) malloc (sizeof (module)); exect1->type=exec; strcpy(exect1->name,"Execution 01"); exect1->bourse_id=1;
	exect1->srv = malloc (sizeof (server));
	launch_execution(exect1,1202); sleep(1);
	sleep(3600);
	kill(getpid(),SIGKILL);
	return 0;
}
